﻿@model Models.WebSite_HaiSheng.Image

@{
    ViewBag.Title = "图片创建";
}

<h2>创建</h2>

@using (Html.BeginForm("Create", "Image", FormMethod.Post, new {enctype = "multipart/form-data" }))
{ 
   @Html.Hidden("relatetype", (string)ViewBag.RelateType)
   @Html.Hidden("relateid", (int)ViewBag.RelateId)
   @Html.Partial("change");
}

<div>
     @{
         var type = (string)ViewBag.RelateType;
         if (!string.IsNullOrEmpty(type))
         {
             @Html.ActionLink("回到列表", "Index", type)
         }
         else
         {
             @Html.ActionLink("回到列表", "Index")
         }
     }
</div>
